<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>练字</title>
    <link href="/resource/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="/resource/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="/resource/jquery/jquery-3.7.1.min.js"></script>
    <script src="/resource/vue/vue.js"></script>
    <script src="/resource/hanzi-writer/Index.js"></script>
    <style>
        body {
            margin: 0;
            padding: 0;
        }

        #grade {
            margin-top: 30px;
        }
    </style>
</head>

<body>
<div id="navbar-box">
    <nav class="navbar navbar-expand-lg bg-body-secondary" data-bs-theme="dark">
        <div class="container-fluid">
            <a class="navbar-brand" href="#">Learn</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
                    data-bs-target="#navbarSupportedContent"
                    aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">

                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
                           aria-expanded="false">
                            选择年级
                        </a>
                        <ul class="dropdown-menu" id="class-dropdown-menu">
                            <li><a class="dropdown-item" href="#">Another action</a></li>
                            <li>
                                <hr class="dropdown-divider">
                            </li>
                            <li><a class="dropdown-item" href="#">Something else here</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</div>
<br/>
<div class="container-fluid" id="app">
    <div id="grade-box">
        <div class="card">
            <div class="card-header" id="card-title"></div>
            <div class="card-body">
                <p class="card-text" id="gradeWordData"></p>
                <div id="links"></div>
            </div>
        </div>
    </div>
    <br/>
    <div id="learn-box"></div>
    <br/>
</div>

<script>

    const index = new Index();
    $(document).ready(function () {
        index.init();
    });

    const selectGrade = (code)=>{
        index.selectGrade(code);
    }
</script>
</body>

</html>